package com.myspring.web.route.aop;

import com.fasterxml.jackson.databind.ObjectMapper;

import java.io.IOException;
import java.util.Map;

/**
 * Created by Administrator on 2017/5/17.
 */
public class Test {
    public static void main(String[] args) {
        ObjectMapper mapper = new ObjectMapper();
        String s = "{\"bankCode\": \"ABC\"}";
        Map map = null;
        try {
            map = mapper.readValue(s, Map.class);
        } catch (IOException e) {
            e.printStackTrace();
        }
        System.out.println(map.get("bankCode"));
    }
}
